import request from "@/utils/request";

// 新建课程
export function saveCourseAPI(data) {
  return request({
    url: "/tCourse/save",
    method: "post",
    data: data,
  });
}

// 编辑课程
export function updateCourseAPI(data) {
  return request({
    url: "/tCourse/update",
    method: "post",
    data: data,
  });
}

//课程列表
export function getCourseListAPI(data) {
  return request({
    url: "/tCourse/list",
    method: "get",
    params: data,
  });
}

// 删除课程
export function deleteCourseListAPI(data) {
  return request({
    url: "/tCourse/delete",
    method: "post",
    data: data,
  });
}
